From: Florian Müllner Date: Fri, 21 Jan 2011 18:50:25 +0000 (+0100) Subject: app-display: Enable swipe-scrolling in the app view X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9212 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e96a90b161eb81ce55edf51dcc8c87ca9d8d70a1;p=gnome-shell.git app-display: Enable swipe-scrolling in the app view With general support for swipe-scrolling in the overview, there is no reason to limit the behavior to workspaces. It is equally useful for scrolling through the grid of available applications, so enable swipe-scrolling for the app view. https://bugzilla.gnome.org/show_bug.cgi?id=635034 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index f1d44ebe7..6cefd6496 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -43,6 +43,15 @@ AlphabeticalView.prototype = { vfade: true }); this.actor.add_actor(box); this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); + this.actor.connect('notify::mapped', Lang.bind(this, + function() { + if (!this.actor.mapped) + return; + + let adjustment = this.actor.vscroll.adjustment; + let direction = Overview.SwipeScrollDirection.VERTICAL; + Main.overview.setScrollAdjustment(adjustment, direction); + })); }, _removeAll: function() {